package com.karaoke.android.kege.fragment


import android.os.Bundle
import android.support.v4.app.Fragment
import android.view.Menu
import android.view.MenuInflater
import android.view.View
import com.karaoke.android.kege.BR
import com.karaoke.android.kege.R
import com.karaoke.android.kege.vm.SingerViewModel
import com.karaoke.android.library.mvvm.BindingConfig


/**
 * A simple [Fragment] subclass.
 */
class SingerFragment : BaseFragment<SingerViewModel>()
{
    override val config: BindingConfig = BindingConfig(R.layout.fragment_singer, BR.viewModel)


    override val viewModel: SingerViewModel
            by lazy { SingerViewModel(childFragmentManager) }

    override fun onCreate(savedInstanceState: Bundle?)
    {
        super.onCreate(savedInstanceState)
        setHasOptionsMenu(true)
        this.title = "歌星"
    }

    override fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater)
    {
        super.onCreateOptionsMenu(menu, inflater)
    }

    override fun onViewCreated(view: View?, savedInstanceState: Bundle?)
    {
        super.onViewCreated(view, savedInstanceState)
    }
}
